<?php

include_once("core/controller.php");
include_once("core/versionHandler.php");

/**
 * homeManager
 *
 * @copyright inovia
 * @package oolime_manager 
 */
class homeManager extends Controller{

  public function isLegitimate(){
    
    return true;
  }
  
  public function actions(){
		global $configMaintenance;
		
		/* version */
    $versionH=new VersionHandler("");
    $this->response->add($versionH->getMyVersion());
    
    $url="http://blog.lezard-visuel.com/index.php?feed/atom";
    $this->response->rss($url);
    
    $this->response->setXSLT("views/manager/index.xsl");
    /* maintenance */
    $ParentNode = $this->response->doc->createElement('maintenance');
    $SonNode  	= $this->response->doc->createElement('state');
    $valueSon 	= $this->response->doc->createTextNode($configMaintenance);
    $SonNode->appendChild($valueSon);
    $ParentNode->appendChild($SonNode);
    $this->response->add($ParentNode);
    
    
    $dateNode = $this->response->doc->createElement("date");
    $dateNode->appendChild($this->response->doc->createTextNode(date("d/m/Y G:i")));
    $this->response->add($dateNode);  
  }
  
  public function defaultActions(){
    if($this->debugController) echo "<br/> - Controller LOG: DEFAULTACTION";
  }
}

?>
